package com.sc.nft.task;

import com.sc.nft.service.ImGroupService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
@Slf4j
public class ImTask {

    private final ImGroupService imGroupService;

    /**
     * 定时扫描用户拉入群组
     *
     * @throws Exception
     */
    @XxlJob("imUserAdd")
    public void imUserAdd() throws Exception {
        imGroupService.allUserAddGroup();
    }

}
